import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Login',
    component: () => import('../views/LoginView.vue')
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import('../views/RegisterView.vue')
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/HomeView.vue')
  },
  {
    path: '/HomeMessage',
    name: 'HomeMessage',
    component: () => import('../views/HomeMessage.vue')
  },
  {
    path: '/change-password',
    name: 'ChangePassword',
    component: () => import('../views/ChangePasswordView.vue')
  },
  {
    path: '/myself',
    name: 'Myself',
    component: () => import('../views/Myself.vue')
  },
  {
    path: '/myself-personalData',
    name: 'PersonalData',
    component: () => import('../views/PersonalData.vue')
  },
  {
    path: '/ForgotPassword',
    name: 'ForgotPassword',
    component: () => import('../views/ForgotPassword.vue')
  },
  {
    path: '/living-room',
    name: 'LivingRoom',
    component: () => import('../views/rooms/LivingRoom.vue')
  },
  {
    path: '/master-bedroom',
    name: 'MasterBedroom',
    component: () => import('../views/rooms/MasterBedroom.vue')
  },
  {
    path: '/study-room',
    name: 'StudyRoom',
    component: () => import('../views/rooms/StudyRoom.vue')
  },
  {
    path: '/kitchen',
    name: 'Kitchen',
    component: () => import('../views/rooms/Kitchen.vue')
  }

]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router